#ifndef PERSON_H
#define PERSON_H

#include <QObject>
#include <QDate>
#include <QPixmap>

class Person : public QObject
{
    Q_OBJECT
public:
    explicit Person(QObject *parent = nullptr);

    void setId(QString id);
    QString getId()const;
    void setPassWord(QString passWord);
    QString getPassWord()const;
    void setName(QString name);
    QString getName()const;
    void setSignature(QString signature);
    QString getSignature()const;
    void setSex(int sex);
    int getSex()const;
    void setPhoneNumber(QString phoneNumber);
    QString getPhoneNumber()const;
    void setBirthday(QDate birthday);
    QDate getBirthday()const;
    void setPixmap(QPixmap pixmap);
    QPixmap getPixmap()const;
    void setPixmapPath(QString pixmapPath);
    QString getPixmapPath()const;

signals:

private:
    QString id; //账号
    QString passWord; //密码
    QString name; //昵称
    QString signature; //签名
    int sex; //性别
    QString phoneNumber; //手机号
    QDate birthday; //生日
    QPixmap pixmap; //头像
    QString pixmapPath; //头像路径
};

#endif // PERSON_H
